/**
 * @author:zhengyilong
 * @email:1797344574@qq.com
 * @phone:13479394730
 * @desc:
 * @DateTime:2022/3/4 10:28
 **/
public class Demo2 {
    public static void main(String[] args) {
        Next head;      //头指针
        Next s1,s2,s3,s4,s5;      //五个数据对象
        s1 = new Next();
        s2 = new Next();
        s3 = new Next();
        s4 = new Next();
        s5 = new Next();
        s1.id = 1001;s1.name = "张三";s1.score = 100;
        s2.id = 1002;s1.name = "李四";s1.score = 80;
        s3.id = 1003;s1.name = "王五";s1.score = 60;
        s4.id = 1004;s1.name = "陈六";s1.score = 59;
        s5.id = 1005;s1.name = "黄七";s1.score = 86;
        //指针赋值
        head = s1;
        s1.next=s2;
        s2.next=s3;
        s3.next=s4;
        s4.next=s5;
        s5.next=null;
        System.out.println(s4.next);

    }
}

